package com.meila.design.mode.state;

/**
 * ***********************************************************
 *
 * @类名 : cms {XXX.java}
 * @DESCRIPTION : ===========XXXX==================
 * @AUTHOR :  meila-x->reese
 * @DATE : 2016/3/2
 * ***********************************************************
 */
public class AState implements State{

    public void doSomeThing(Person person){
        if(person.getFlag()==6){
            System.out.println("吃早餐");
        }else {
            new BState().doSomeThing(person);
        }
    }
}
